package com.cskaoyan.mapper;

import com.cskaoyan.bean.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RoleMapper {
    long countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<RoleList> selectRole();

    int insertByName(Role role, Date date);

    int updateByRole(Role role, Date date);

    int deleteByRoleId(Integer id);

    List<PermissionApi_empower> selectPermissionApi(String roleId);

    List<PermissionsSystem2_empower> selectPermissionsSystem2(String roleId);

    List<PermissionsSystem1_empower> selectPermissionsSystem1(String roleId);

    List<PermissionApi_empower> selectPermissionApiAll();

    List<PermissionsSystem2_empower> selectPermissionsSystem2All();

    List<PermissionsSystem1_empower> selectPermissionsSystem1All();
}